import React from 'react'
import {
  BarChartOutlined,
  DatabaseOutlined,
  DollarOutlined,
  HomeOutlined,
  MenuOutlined,
  SafetyCertificateOutlined,
  SettingOutlined,
  ShopOutlined,
  ShoppingCartOutlined,
  TeamOutlined,
  ToolOutlined,
  UserOutlined,
} from '@ant-design/icons'

export interface RouteItem {
  path: string
  name: string
  icon?: React.ReactNode
  routes?: RouteItem[]
  hideInMenu?: boolean
}

export const routes: RouteItem[] = [
  {
    path: '/login',
    name: '登录',
    hideInMenu: true,
  },
  {
    path: '/home',
    name: '首页',
    icon: <HomeOutlined />,
  },
  {
    path: '/purchase',
    name: '采购管理',
    icon: <ShoppingCartOutlined />,
  },
  {
    path: '/products',
    name: '商品管理',
    icon: <ShopOutlined />,
  },
  {
    path: '/inventory',
    name: '库存管理',
    icon: <DatabaseOutlined />,
  },
  {
    path: '/sales',
    name: '销售管理',
    icon: <DollarOutlined />,
  },
  {
    path: '/suppliers',
    name: '供应商管理',
    icon: <TeamOutlined />,
  },
  {
    path: '/reports',
    name: '报表统计',
    icon: <BarChartOutlined />,
  },
  {
    path: '/system',
    name: '系统管理',
    icon: <SettingOutlined />,
    routes: [
      {
        path: '/system/users',
        name: '用户管理',
        icon: <UserOutlined />,
      },
      {
        path: '/system/roles',
        name: '角色权限',
        icon: <SafetyCertificateOutlined />,
      },
      {
        path: '/system/menus',
        name: '菜单配置',
        icon: <MenuOutlined />,
      },
      {
        path: '/system/settings',
        name: '系统配置',
        icon: <ToolOutlined />,
      },
    ],
  },
] 